﻿namespace Site2AppWP8.Config
{
    using System;
    using System.Runtime.Serialization;

    [DataContract]
    public class SearchConfig
    {
        public SearchConfig()
        {
            this.IsSearchEnabled = false;
        }

        [DataMember(Name = "enabled")]
        public bool IsSearchEnabled { get; set; }

        [DataMember(Name = "searchURL")]
        public string SearchUrlString { get; set; }

        public Uri SearchUrl 
        {
            get 
            { 
                return new Uri(this.SearchUrlString); 
            } 
        }
    }
}
